<template>
  <div class="common-layout">
    <el-container>
      <CommonAside />
      <el-container class="container">
        <CommonHeader />
        <CommonTag />
        <el-main class="right-main">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script setup>
import { defineComponent } from 'vue'
import CommonHeader from '../components/CommonHeader.vue'
import CommonAside from '../components/CommonAside.vue'
import CommonTag from '@/components/CommentTag.vue'
defineComponent({
  components: {
    CommonHeader,
    CommonAside,
    CommonTag
  }
})


</script>

<style lang='scss' scoped>
.common-layout {
  height: 100%;

  .right-main {
    height: calc(100% - 124px) !important;
  }

}

.el-container {
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
}
</style>
